<template>
  <div class="sms-recharge">
    <tabs :tabs="tabLists" class="tab" :handleClick="handleClick"></tabs>
    <router-view></router-view>
  </div>
</template>
<script>
import tabs from "@/components/tabs/tabs";
export default {
  data() {
    return {
      tabLists: [
        { label: "数据总览", name: "coupon-comprehen-list" },
        { label: "数据明细", name: "coupon-comprehen-detail" }
      ]
    };
  },
  components: {
    tabs
  },
  methods: {
    handleClick(tab, event) {
      if (tab.index == 0) {
        this.$router.push({
          path: "coupon-comprehen-list"
        });
      } else if (tab.index == 1) {
        this.$router.push({
          path: "coupon-comprehen-detail"
        });
        /* this.tabLists=[
                        {"label":"经销商列表","name":"first","content":storeList},
                        {"label":"充值日志","name":"second","content":log},
                        {"label":"添加经销商","name":"third","content":storeList}, 
                    ]; */
      } else if (tab.index == 2) {
      }
    }
  },
  mounted() {
    //页面刷新就执行
    /* this.tabLists=[
                {"label":"22","name":"first"},
                {"label":"充值333444dfd日志","name":"second"},
                {"label":"添加经销商","name":"third"},
			]; */
  }
};
</script>
<style scoped lang="scss">
</style>
